package com.atguigu.yygh.cmn;/*
 * @author: XueYouPeng
 * @time: 2023/6/8 11:32
 */

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

public class StuReadListener extends AnalysisEventListener<Student> {
    //负责逐行读取，参数1：student ， 代表读取到的当前行数据
    @Override
    public void invoke(Student student, AnalysisContext analysisContext) {
        //3行数据 invoke被执行3次
        System.out.println("读取到:" + student);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
